Widgets such as gtkfilechooser may be saving their size and position on
the unmap callback, if the client-side decoration header bar is removed
first, the reported size will be wrong.
https://bugzilla.gnome.org/show_bug.cgi?id=756618
GtkWindow *window = GTK_WINDOW (object);
GtkWindowPrivate *priv = window->priv;
- unset_titlebar (window);
gtk_window_set_focus (window, NULL);
gtk_window_set_default (window, NULL);
remove_attach_widget (window);
G_OBJECT_CLASS (gtk_window_parent_class)->dispose (object);
+ unset_titlebar (window);
while (priv->popovers)
{